package com.briup.mapper;

import com.briup.bean.User;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author pgc
 * @Description:
 * @date 2024/9/30 9:15
 */
@Mapper
public interface UserMapper {
     void deleteById(Integer id);

     void insertUser(User user);
     void insertUser1(User user);

     void updateUser(User user);

     User selectUserById(Integer id);

     List<User> queryByCondition(String name,Byte status);

     @Select("select * from es_user where username=#{name}")
     User selectByName(String name);

     Set<User> selectAll();

     Map<String,Object> selectById(Integer id);

     String selectUserNameById(Integer id);

     int selectCount();

     List<User> queryByCondition2(String name,Byte status,String phone);

     void updateUser2(User user);

     void deleteBatch(List<Integer> ids);
}
